package com.jiazhong.example.project.bookstore.backend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiazhong.example.project.bookstore.commons.bean.Power;
import com.jiazhong.example.project.bookstore.commons.util.JsonResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface PowerService extends IService<Power> {

    JsonResult findAllPower();

    JsonResult findPowerByUserId(String id);

    JsonResult updateUserPowers(String userId, List<String> powers);
}
